class EnumMemberApprovalType
  @@BY_OWNER   = 1
  @@BY_MEMBERS = 2
  @@AUTO       = 3

  def get_description(_type)
    case _type
    when EnumMemberApprovalType.BY_OWNER
      I18n.t :tr_member_approval_by_owner
    when EnumMemberApprovalType.BY_MEMBERS
      I18n.t :tr_member_approval_by_members
    when EnumMemberApprovalType.AUTO
      I18n.t :tr_member_approval_auto
    end
  end

  def get_array()
      type_array[] = EnumProfileUpdateType.get_description(EnumMemberApprovalType.BY_OWNER)
      type_array[] = EnumProfileUpdateType.get_description(EnumMemberApprovalType.BY_MEMBERS)
      type_array[] = EnumProfileUpdateType.get_description(EnumMemberApprovalType.AUTO)
  end
end
